package com.mass.core.sys.sysLog.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.mass.core.sys.sysLog.model.SysLog;
import com.mass.core.sys.sysLog.services.SysLogServices;
import com.mass.core.utils.AjaxResponse;

/**
 * 
 * @ProjectName:  [demo-ht] 
 * @Package:      [com.mass.core.sys.sysLog.components.SysLogController.java]
 * @ClassName:    [SysLogController]   
 * @Description:  [系统日志]   
 * @Author:       [张双喜]   
 * @CreateDate:   [2018年11月7日 上午10:14:44]   
 * @UpdateUser:   [zsx]   
 * @UpdateDate:   [2018年11月7日 上午10:14:44]   
 * @UpdateRemark: [说明本次修改内容] 
 * @Since         [JDK1.7]
 * @Version:      [v1.0]
 *
 */
@RequestMapping("/sysLog")
@RestController
public class SysLogController {

	@Autowired
	
	private SysLogServices logServices;
	
	@RequestMapping("/findSysLogPage")
	public AjaxResponse findSysLogPage(Integer page,Integer limit,SysLog sysLog){
		return logServices.findSysLogPage(page,limit,sysLog);
	}
	
	@RequestMapping("/delete")
	public AjaxResponse delete(Long id) {
		return logServices.delete(id);
	}
}
